package cn.edu.zxj.calculate.controller;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description：
 *
 * @author: zxj
 * @date: 2024-03-19
 * @time: 00:13:36
 */
@RestController
public class AddController {
    @RequestMapping("/add")
    public Integer add(Integer num1, Integer num2) {
        System.out.println("num1 = " + num1 + ", num2 = " + num2);
        return num1 + num2;
    }
}
